/*
 * Copyright 2019 Web3 Labs Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package org.web3j.crypto;

import java.math.BigInteger;

import org.web3j.utils.Numeric;

/** Keys generated for unit testing purposes. */
public class SampleKeys {

    public static final String PRIVATE_KEY_STRING =
            "848311b3a9ce4f4a7788eac5f424404bbdf1f33fb29d18916e9e85aec6469305";
    
    static final String PUBLIC_KEY_STRING =
            "044d9bc31bc5378bf5441dcac30c33bed991816bd1e72607c3c7f3769ecf1d448"
            + "5cc42bc936eee086373b8f588e5e60eb17e6bf0b16d02f941aec5d9bc2459d5e5";
    
    public static final String ADDRESS = "0x344a41ddf98ecb18a8a2980e748144ccd82ed635";
    public static final String ADDRESS_NO_PREFIX = Numeric.cleanHexPrefix(ADDRESS);

    public static final String PASSWORD = "Insecure Pa55w0rd";
    public static final String MNEMONIC =
            "scatter major grant return flee easy female jungle"
                    + " vivid movie bicycle absent weather inspire carry";

    static final BigInteger PRIVATE_KEY = Numeric.toBigInt(PRIVATE_KEY_STRING);
    static final BigInteger PUBLIC_KEY = Numeric.toBigInt(PUBLIC_KEY_STRING);

    static final ECKeyPair KEY_PAIR = new ECKeyPair(PRIVATE_KEY, PUBLIC_KEY);

    public static final Credentials CREDENTIALS = Credentials.create(PRIVATE_KEY_STRING);

    private SampleKeys() {}
}
